package com.teacher.game.state;

import android.view.MotionEvent;
import com.teacher.game.framework.util.Painter;
import com.teacher.ellio.GameMainActivity;

public abstract class State {
    public abstract void  init();

    public abstract void  update(float delta);

    public abstract void  render(Painter g);

    public abstract boolean onTouch(MotionEvent e,int scaleX,int scaleY);

    public void  setCurrState(State newState) {
        GameMainActivity.sGame.setCurrState(newState);
    }
}
